Datepart example



DatePart('yyyy',[OrderDate])
(where yyyy is the four-digit number of year, and [OrderDate]
is the field name).

[OrderDate]=3-Jul-96

Result: 1996


2nd Opinion copyright © 1997 by McAfee Associates.
Subject to the terms set forth in the end-user license agreement. All rights reserved.